# coding=utf-8
from pages.postpage import Topics
import webapp2
import datetime
from util.my_jinja2_env import Jinja2_my_env

class TmpPage(webapp2.RequestHandler):
    def get(self):
        greetings = Topics.all().order('-t_date')
        template_values = {
                    'greetings': greetings,
                    'url': 'https://www.google.com',
                    'url_linktext': 'google search',
                    'now':datetime.datetime.now()
                }
        
        template = Jinja2_my_env().getEnv().get_template(Jinja2_my_env.HTML_PATH + 'hello.html')
        self.response.write(template.render(template_values))        
    